import request from "../utils/request"
import {getToken} from "../utils/tokenData"
export const uploadFileAPI = (fd) => {
    return request({
        method:'POST',
        url:'/upload',
        // headers: {
        //     Authorization: getToken(),
        //   },
          // 注意：上传文件的时候，需要用 FormData
          data: fd,
    })
}
export const userloadAPI = (id,data)=>{
    return request({
        method:'POST',
        url:`/user_update/${id}`,
        // headers: {
        //     Authorization: getToken(),
        //   },
          // 注意：上传文件的时候，需要用 FormData
          data
    })
}
export const getColumnListAPI = ()=>{
    return request({
        url:'/category'
    })
}